package com.gxa.user.service;

import dto.ResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author IL_CheChio
 * @data 2021/5/14 0014 15:40
 */
@Service
@FeignClient(value = "upload-service")
@RequestMapping(value = "upload",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public interface UploadService {
    @PostMapping("do")
    ResultDTO upload(MultipartFile file);
}
